-----------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/bennettd/Dropbox/Hyderabad (DB & WY)/Analysis/replication/replication_bootstrap.log
  log type:  text
 opened on:  15 Feb 2018, 10:43:09

. set more off

. 
. *** IMPLEMENTS WILD CLUSTER BOOTSTRAP P-VALUES FOR "THE MARKET FOR HIGH QUALITY MEDICINE"
. *** DANIEL BENNETT AND WESLEY YIN
. *** FEBRUARY 2018
. 
. 
. ************
. ** MACROS **
. ************
. 
. global urc      "tag_unitround==1  & medplus~=1"                        // UNIT-ROUND TAG

. global prc      "tag_pharmround==1 & medplus~=1"                        // PHARMACY-ROUND TAG

. global demo_m   "inc_m edu_m deg_m cst_m tfw_m"                                     // MARKET DEMOGRAPHICS

. global hlth_m   "fevr_m diar_m cold_m injy_m"                                   // MARKET HEALTH STATUS

. global demo_bix "inc_mb edu_mb deg_mb cst_mb tfw_mb post_inc_mb post_edu_mb post_deg_mb post_cst_mb post_tfw_mb
> "                             // BASELINE MARKET DEMOGRAPHICS X POST

. global hlth_bix "fevr_mb diar_mb cold_mb injy_mb post_fevr_mb post_diar_mb post_cold_mb post_injy_mb"          
>                                  // BASELINE MARKET HEALTH STATUS X POST

. global supp_bix "retpctb signsb phageb tr_allb post_retpctb post_signsb post_phageb post_tr_allb"              
>                                                  // BASELINE PHARMACY CHARACTERISTICS X POST

. 
. 
. ****************************
. ** WILD CLUSTER BOOTSTRAP **
. ****************************
. 
. ** PROGRAM COMPUTES THE P-VALUE FOR ONE REGRESSOR USING THE WILD CLUSTER BOOTSTRAP (CAMERON, GELBACH, AND MILLE
> R 2008 RESTAT).
. ** SPECIFY FIXED EFFECTS AS DUMMY VARIABLES
. 
. ** INPUTS ARE: 
. ** 1: DEPENDENT VARIABLE
. ** 2: REGRESSOR OF INTEREST
. ** 3: OTHER REGRESSORS IN THE MODEL (INLCUDING FIXED EFFECTS)
. ** 4: LIMITS ON THE REGRESSION SAMPLE (STUFF FOLLOWING THE "IF")
. ** 5: NUMBER OF BOOTSTRAP REPLICATIONS
. 
. 
. capture program drop wildbs

. program define wildbs
  1. set seed 19800426
  2. 
. tempfile main bootsave
  3. use $indata, clear
  4. qui reg `1' `2' `3' if `4', cl(mkt_id) 
  5. global maint=_b[`2']/_se[`2']
  6. 
. qui reg `1' `3' if `4', cl(mkt_id)
  7. predict epshat, resid
  8. predict yhat, xb
  9. sort mkt_id
 10. qui save bsfile, replace
 11. 
. postfile bskeep t_wild using bs_results, replace
 12. 
. forvalues b=1/`5' {
 13. use bsfile, replace
 14. qui by mkt_id: gen temp=uniform()
 15. qui by mkt_id: gen pos=(temp[1]<0.5)
 16. qui gen wildresid=epshat*(2*pos-1)
 17. qui gen wildy=yhat+wildresid
 18. qui reg wildy `2' `3' if `4', cl(mkt_id)
 19. local bst_wild=_b[`2']/_se[`2']
 20. post bskeep(`bst_wild')
 21. }
 22. postclose bskeep
 23. 
. clear
 24. use bs_results
 25. gen positive=($maint>0)
 26. gen pos=(t_wild>$maint)
 27. gen neg=(t_wild<$maint)
 28. gen reject=positive*pos+(1-positive)*neg
 29. qui sum reject
 30. local sumreject=r(sum)
 31. local p_value_wild=2*`sumreject'/`5'
 32. local p_value_main=2*(ttail((19),abs($maint)))
 33. 
. display "Number BS reps = `5'"
 34. display "P-value from clustered standard errors = `p_value_main'"
 35. display "P-value from wild bootstrap = `p_value_wild'"
 36. end

. 
. 
. ****************************************
. ** SPECIFY THE NUMBER OF REPLICATIONS **
. ****************************************
. 
. global breps=30000

. global indata "final"

. 
. 
. 
. 
. 
. *************
. ** TABLE 3 **
. *************
. 
. *(1) 
. global indata traffic

. wildbs lntr r2_trt "r2 r3 r3_trt mk_*" "_n>0" $breps
(1 missing value generated)
(1 missing value generated)
Number BS reps = 30000
P-value from clustered standard errors = .0008853877572076
P-value from wild bootstrap = .0019333333333333

. wildbs lntr r3_trt "r2 r3 r2_trt mk_*" "_n>0" $breps
(1 missing value generated)
(1 missing value generated)
Number BS reps = 30000
P-value from clustered standard errors = .0073978806066624
P-value from wild bootstrap = .0128

. 
. *(2)
. wildbs lntr r2_trt "r2 r3 r3_trt mk_* $demo_m $hlth_m" "_n>0" $breps
(1 missing value generated)
(1 missing value generated)
Number BS reps = 30000
P-value from clustered standard errors = .0301333349315617
P-value from wild bootstrap = .1229333333333333

. wildbs lntr r3_trt "r2 r3 r2_trt mk_* $demo_m $hlth_m" "_n>0" $breps
(1 missing value generated)
(1 missing value generated)
Number BS reps = 30000
P-value from clustered standard errors = .0217274349321835
P-value from wild bootstrap = .0471333333333333

. 
. *(3)
. global indata census

. wildbs present r2_trt "r2 r3 r3_trt mk_*" "_n>0" $breps
Number BS reps = 30000
P-value from clustered standard errors = .7305503210519548
P-value from wild bootstrap = .7392666666666666

. wildbs present r3_trt "r2 r3 r2_trt mk_*" "_n>0" $breps
Number BS reps = 30000
P-value from clustered standard errors = .0450448747985141
P-value from wild bootstrap = .0296666666666667

. 
. *(4)
. wildbs present r2_trt "r2 r3 r3_trt mk_* $demo_m $hlth_m" "_n>0" $breps
Number BS reps = 30000
P-value from clustered standard errors = .7683016245804979
P-value from wild bootstrap = .7886

. wildbs present r3_trt "r2 r3 r2_trt mk_* $demo_m $hlth_m" "_n>0" $breps
Number BS reps = 30000
P-value from clustered standard errors = .085558798707953
P-value from wild bootstrap = .1212

. 
. 
. 
. 
. 
. *************
. ** TABLE 4 **
. *************
. 
. global indata final

. 
. *(1)
. wildbs pass post_trt "post mk_*" "$urc & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0370862996522672
P-value from wild bootstrap = .0348666666666667

. 
. *(2)
. wildbs pass post_trt "post mk_* $demo_m $hlth_m" "$urc & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0013052480503507
P-value from wild bootstrap = .0353333333333333

. 
. *(3)
. wildbs pass post_trt "post mk_*" "$urc & nn==0 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .5139637112758778
P-value from wild bootstrap = .5083333333333333

. 
. *(4)
. wildbs pass post_trt "post mk_* $demo_m $hlth_m" "$urc & nn==0 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .9725715937020935
P-value from wild bootstrap = .9762

. 
. *(5)
. wildbs pass post_trt "post mk_*" "$urc & nn==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0072655919627845
P-value from wild bootstrap = .0041333333333333

. 
. *(6)
. wildbs pass post_trt "post mk_* $demo_m $htlh_m" "$urc & nn==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .011822080151453
P-value from wild bootstrap = .1108666666666667

. 
. *(7)
. wildbs pass post_trt "post mk_* man_* $demo_m $htlh_m" "$urc & nn==1 & ln_ppt~=." $breps
(28 missing values generated)
(28 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .236917207975547
P-value from wild bootstrap = .3102666666666667

. 
. 
. 
. 
. *************
. ** TABLE 5 **
. *************
. 
. *(1)
. global indata final

. wildbs ln_ppt post_trt "post mk_*" "$urc" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .4453484403575777
P-value from wild bootstrap = .4472666666666666

. 
. *(2)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m" "$urc" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .3462368330549985
P-value from wild bootstrap = .4724666666666666

. 
. *(3)
. wildbs ln_ppt post_trt "post mk_*" "$urc & nn==0" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6028951209521152
P-value from wild bootstrap = .6032

. 
. *(4)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m" "$urc & nn==0" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .5182251051918827
P-value from wild bootstrap = .6127333333333334

. 
. *(5)
. wildbs ln_ppt post_trt "post mk_*" "$urc & nn==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0597268869974983
P-value from wild bootstrap = .0612

. 
. *(6)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m" "$urc & nn==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .073807082548025
P-value from wild bootstrap = .2046666666666667

. 
. *(7)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m man_*" "$urc & nn==1" $breps
(30 missing values generated)
(28 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .091743929765348
P-value from wild bootstrap = .1703333333333333

. 
. 
. 
. 
. 
. 
. 
. 
. *************
. ** TABLE 6 **
. *************
. 
. *(1)
. global indata consumer

. wildbs qual_nearpharms r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(511 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .4009388951029357
P-value from wild bootstrap = .4334666666666667

. wildbs qual_nearpharms r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(511 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .044032698367427
P-value from wild bootstrap = .045

. 
. *(2)
. wildbs qual_nearpharms r2_trt "r2 r3 r3_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(511 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1012633484353195
P-value from wild bootstrap = .1978

. wildbs qual_nearpharms r3_trt "r2 r3 r2_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(511 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0145204051282121
P-value from wild bootstrap = .0026666666666667

. 
. *(3)
. wildbs qual_natdrugs r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(1,655 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .3613086731638783
P-value from wild bootstrap = .3794666666666667

. wildbs qual_natdrugs r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(1,655 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .2261402185174844
P-value from wild bootstrap = .2496

. 
. *(4)
. wildbs qual_natdrugs r2_trt "r2 r3 r3_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(1,655 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0307481381822699
P-value from wild bootstrap = .0948

. wildbs qual_natdrugs r3_trt "r2 r3 r2_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(1,655 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .5236158524008407
P-value from wild bootstrap = .5588666666666666

. 
. *(5)
. wildbs qual_locdrugs r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(2,059 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1722224010729582
P-value from wild bootstrap = .1974666666666667

. wildbs qual_locdrugs r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2 & mp==0" $breps
(2,059 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0486427666571056
P-value from wild bootstrap = .0536

. 
. *(6)
. wildbs qual_locdrugs r2_trt "r2 r3 r3_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(2,059 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0300424940046131
P-value from wild bootstrap = .0792

. wildbs qual_locdrugs r3_trt "r2 r3 r2_trt mk_* $demo_m $hlth_m [pw=tr_all]" "int_loc==2 & mp==0" $breps
(2,059 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0004929646740627
P-value from wild bootstrap = .0018666666666667

. 
. 
. 
. 
. 
. 
. *************
. ** TABLE 7 **
. *************
. 
. *(1)
. global indata final

. wildbs pass post_trt "post mk_* [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0362598422657808
P-value from wild bootstrap = .0321333333333333

. 
. *(2)
. wildbs pass post_trt "post mk_* $demo_m $hlth_m [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0048833357608851
P-value from wild bootstrap = .0595333333333333

. 
. *(3)
. wildbs pass post_trt "post mk_* pe post_pe trt_pe post_trt_pe [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .2681547056008609
P-value from wild bootstrap = .2656666666666667

. wildbs pass post_trt_pe "post mk_* pe post_pe trt_pe post_trt [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .7126798194508821
P-value from wild bootstrap = .7096666666666667

. 
. *(4)
. wildbs pass post_trt "post mk_* he post_he trt_he post_trt_he [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .1581005407058985
P-value from wild bootstrap = .1692666666666667

. wildbs pass post_trt_he "post mk_* he post_he trt_he post_trt [pw=tr_all]" "tag_unitround==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .8676113475916661
P-value from wild bootstrap = .8805333333333333

. 
. *(5)
. wildbs ln_ppt post_trt "post mk_* [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1342462727827704
P-value from wild bootstrap = .1374666666666667

. 
. *(6)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0645301713143756
P-value from wild bootstrap = .1328

. 
. *(7)
. wildbs ln_ppt post_trt "post mk_* pe post_pe trt_pe post_trt_pe [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6944428059447342
P-value from wild bootstrap = .6893333333333334

. wildbs ln_ppt post_trt_pe "post mk_* pe post_pe trt_pe post_trt [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1205325473871674
P-value from wild bootstrap = .1336666666666667

. 
. *(8)
. wildbs ln_ppt post_trt "post mk_* he post_he trt_he post_trt_he [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1721309671821021
P-value from wild bootstrap = .176

. wildbs ln_ppt post_trt_he "post mk_* he post_he trt_he post_trt [pw=tr_all]" "tag_unitround==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .8639768381250419
P-value from wild bootstrap = .8674666666666667

. 
. 
. 
. 
. 
. *************
. ** TABLE 8 **
. *************
. 
. *(1)
. global indata final

. wildbs national         post_trt "post mk_*" "$urc & tte~=. & mpaspct~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .9579176697577976
P-value from wild bootstrap = .9581333333333333

. 
. *(2)
. wildbs mpaspct          post_trt "post mk_*" "$urc & tte~=." $breps
(120 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .2012768167847158
P-value from wild bootstrap = .2308

. 
. *(3)
. wildbs national_mpaspct post_trt "post mk_*" "$urc & tte~=." $breps
(120 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9325995577192907
P-value from wild bootstrap = .9336

. 
. *(4)
. wildbs tte              post_trt "post mk_*" "$urc & tte~=. & mpaspct~=." $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6460507544878484
P-value from wild bootstrap = .6544

. 
. *(5)
. wildbs degree           post_trt "post mk_*" "$prc & ph_include==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .9014829802603417
P-value from wild bootstrap = .8998

. 
. *(6)
. wildbs ph_workers_tot   post_trt "post mk_*" "$prc & ph_include==1" $breps
(8 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9928634425893401
P-value from wild bootstrap = .9976

. 
. *(7)
. wildbs ph_ac            post_trt "post mk_*" "$prc & ph_include==1" $breps
(8 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .3491050469384924
P-value from wild bootstrap = .3439333333333333

. 
. *(8)
. wildbs ph_shipments     post_trt "post mk_*" "$prc & ph_include==1" $breps
(8 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6534667462447219
P-value from wild bootstrap = .65

. 
. *(9)
. wildbs all_strips       post_trt "post mk_*" "$prc & ph_include==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .0036989565962658
P-value from wild bootstrap = .0054666666666667

. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 1 **
. **********************
. 
. // PANEL A
. *(1)
. global indata final

. wildbs l_api post "post_trt mk_*" "$urc & qq_sample==1 & dosage==500" $breps
(16 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0000808496505741
P-value from wild bootstrap = .0014666666666667

. wildbs l_api post_trt "post mk_*" "$urc & qq_sample==1 & dosage==500" $breps
(16 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1662139908528574
P-value from wild bootstrap = .1902666666666667

. 
. *(2)
. wildbs l_api_pct post "post_trt mk_*" "$urc & qq_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9514023330832708
P-value from wild bootstrap = .9475333333333333

. wildbs l_api_pct post_trt "post mk_*" "$urc & qq_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .523791251666498
P-value from wild bootstrap = .5258666666666667

. 
. *(3)
. wildbs ip_api_pass post "post_trt mk_*" "$urc & qq_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .2590615606304418
P-value from wild bootstrap = .2923333333333333

. wildbs ip_api_pass post_trt "post mk_*" "$urc & qq_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0387447803274307
P-value from wild bootstrap = .0446666666666667

. 
. *(4)
. wildbs l_dissol_min post "post_trt mk_*" "$urc & qq_sample==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .8211575776182017
P-value from wild bootstrap = .8297333333333333

. wildbs l_dissol_min post_trt "post mk_*" "$urc & qq_sample==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1599941672403773
P-value from wild bootstrap = .1834

. 
. *(5)
. wildbs ip_dissol_pass post "post_trt mk_*" "$urc & qq_sample==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0872207961181568
P-value from wild bootstrap = .1092666666666667

. wildbs ip_dissol_pass post_trt "post mk_*" "$urc & qq_sample==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0504534741875578
P-value from wild bootstrap = .0493333333333333

. 
. *(6)
. wildbs l_uniform_absmax post "post_trt mk_*" "$urc & qq_sample==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = 6.64447773344e-06
P-value from wild bootstrap = 0

. wildbs l_uniform_absmax post_trt "post mk_*" "$urc & qq_sample==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .5486194716238484
P-value from wild bootstrap = .5569333333333333

. 
. *(7)
. wildbs ip_uniform_pass post "post_trt mk_*" "$urc & qq_sample==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0446396961316773
P-value from wild bootstrap = .1227333333333333

. wildbs ip_uniform_pass post_trt "post mk_*" "$urc & qq_sample==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .7996743463009893
P-value from wild bootstrap = .8042666666666667

. 
. 
. 
. // PANEL B
. *(1)
. wildbs l_api post "post_trt mk_*" "$urc & qq_sample==1 & dosage==500 & nn==1" $breps
(16 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0041348149407755
P-value from wild bootstrap = .0116

. wildbs l_api post_trt "post mk_*" "$urc & qq_sample==1 & dosage==500 & nn==1" $breps
(16 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .7739094781291299
P-value from wild bootstrap = .7734

. 
. *(2)
. wildbs l_api_pct post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0067393395437822
P-value from wild bootstrap = .0125333333333333

. wildbs l_api_pct post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0124182940867726
P-value from wild bootstrap = .0088666666666667

. 
. *(3)
. wildbs ip_api_pass post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0028331987654395
P-value from wild bootstrap = .0154

. wildbs ip_api_pass post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0042690032049072
P-value from wild bootstrap = .0014

. 
. *(4)
. wildbs l_dissol_min post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .5526790077287185
P-value from wild bootstrap = .6400666666666667

. wildbs l_dissol_min post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0669201785980398
P-value from wild bootstrap = .0643333333333333

. 
. *(5)
. wildbs ip_dissol_pass post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1212600454025875
P-value from wild bootstrap = .1255333333333333

. wildbs ip_dissol_pass post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(53 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0246586828129375
P-value from wild bootstrap = .0234

. 
. *(6)
. wildbs l_uniform_absmax post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0014534256992362
P-value from wild bootstrap = .0107333333333333

. wildbs l_uniform_absmax post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .87665968232768
P-value from wild bootstrap = .8769333333333333

. 
. *(7)
. wildbs ip_uniform_pass post "post_trt mk_*" "$urc & qq_sample==1 & nn==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .3570950068742191
P-value from wild bootstrap = 0

. wildbs ip_uniform_pass post_trt "post mk_*" "$urc & qq_sample==1 & nn==1" $breps
(40 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9233902668570668
P-value from wild bootstrap = .9088666666666667

. 
. 
. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 3 **
. **********************
. 
. *(1)
. global indata final

. wildbs pass post_trt "post mk_*" "$urc & drpm==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0531902040292293
P-value from wild bootstrap = .0553333333333333

. 
. *(2)
. wildbs pass post_trt "post mk_* $demo_m $hlth_m" "$urc & drpm==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .046641034207323
P-value from wild bootstrap = .219

. 
. *(3)
. wildbs pass post_trt "post mk_*" "$urc & nn==1 & drpm==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0116836751539129
P-value from wild bootstrap = .0051333333333333

. 
. *(4)
. wildbs pass post_trt "post mk_* $demo_m $hlth_m" "$urc & nn==1 & drpm==1 & ln_ppt~=." $breps
Number BS reps = 30000
P-value from clustered standard errors = .0991070703523946
P-value from wild bootstrap = .3222

. 
. *(5)
. wildbs ln_ppt post_trt "post mk_*" "$urc & drpm==1 & ln_ppt~=." $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .5810932846495829
P-value from wild bootstrap = .586

. 
. *(6)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m" "$urc & drpm==1 & ln_ppt~=." $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .4185171669662162
P-value from wild bootstrap = .5574666666666667

. 
. *(7)
. wildbs ln_ppt post_trt "post mk_*" "$urc & nn==1 & drpm==1& ln_ppt~=." $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0723556828872834
P-value from wild bootstrap = .073

. 
. *(8)
. wildbs ln_ppt post_trt "post mk_* $demo_m $hlth_m" "$urc & nn==1 & drpm==1 & ln_ppt~=." $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0010974536587748
P-value from wild bootstrap = .0494666666666667

. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 4 **
. **********************
. 
. *(1)
. global indata final

. wildbs pass post_trt "post $demo_bix mk_*" "$urc & nn==1" $breps
(67 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0101409049758853
P-value from wild bootstrap = .0599333333333333

. 
. *(2)
. wildbs pass post_trt "post $hlth_bix mk_*" "$urc & nn==1" $breps
(67 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0064481482996746
P-value from wild bootstrap = .0192

. 
. *(3)
. wildbs pass post_trt "post $supp_bix mk_*" "$urc & nn==1" $breps
(67 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0033191702118618
P-value from wild bootstrap = .0076666666666667

. 
. *(4)
. wildbs pass post_trt "post pass_phb post_pass_phb mk_*" "$urc & nn==1" $breps
(67 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0107865184230241
P-value from wild bootstrap = .0069333333333333

. 
. *(5)
. wildbs ln_ppt post_trt "post $demo_bix mk_*" "$urc & nn==1" $breps
(87 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0323930622262398
P-value from wild bootstrap = .041

. 
. *(6)
. wildbs ln_ppt post_trt "post $hlth_bix mk_*" "$urc & nn==1" $breps
(87 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0428932908228644
P-value from wild bootstrap = .0687333333333333

. 
. *(7)
. wildbs ln_ppt post_trt "post $supp_bix mk_*" "$urc & nn==1" $breps
(87 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .26837130034093
P-value from wild bootstrap = .306

. 
. *(8)
. wildbs ln_ppt post_trt "post ppt_phb post_ppt_phb mk_*" "$urc & nn==1" $breps
(87 missing values generated)
(67 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1111355304421253
P-value from wild bootstrap = .12

. 
. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 5 **
. **********************
. 
. *(1)
. global indata final

. wildbs pass post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=5" $breps
Number BS reps = 30000
P-value from clustered standard errors = .1264888112675106
P-value from wild bootstrap = .1377333333333333

. 
. *(2)
. wildbs pass post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=10" $breps
Number BS reps = 30000
P-value from clustered standard errors = .0646958454006768
P-value from wild bootstrap = .0734666666666667

. 
. *(3)
. wildbs pass post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=5 & nn==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .0192800420475327
P-value from wild bootstrap = .0027333333333333

. 
. *(4)
. wildbs pass post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=10 & nn==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .0597566799044005
P-value from wild bootstrap = .0098666666666667

. 
. *(5)
. wildbs ln_ppt post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=5" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1519659618135917
P-value from wild bootstrap = .1610666666666667

. 
. *(6)
. wildbs ln_ppt post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=10" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1848473638517577
P-value from wild bootstrap = .2125333333333333

. 
. *(7)
. wildbs ln_ppt post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=5 & nn==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0333414729908048
P-value from wild bootstrap = .0433333333333333

. 
. *(8)
. wildbs ln_ppt post_trt "post mk_*" "$urc & qq_sample==1 & disttrt>=10 & nn==1" $breps
(20 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0255615694099408
P-value from wild bootstrap = .0480666666666667

. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 6 **
. **********************
. 
. *(1)
. global indata consumer

. wildbs qs r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2" $breps
(97 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0020295149852605
P-value from wild bootstrap = .0002666666666667

. wildbs qs r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2" $breps
(97 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0013196278377791
P-value from wild bootstrap = .0025333333333333

. 
. *(2)
. wildbs qs r2_trt "r2 r3 r3_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
(97 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0022927194390929
P-value from wild bootstrap = 0

. wildbs qs r3_trt "r2 r3 r2_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
(97 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0005199112736512
P-value from wild bootstrap = .0014

. 
. *(3)
. wildbs cs r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2" $breps
Number BS reps = 30000
P-value from clustered standard errors = .4837294085252949
P-value from wild bootstrap = .5084666666666666

. wildbs cs r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2" $breps
Number BS reps = 30000
P-value from clustered standard errors = .8597536205318994
P-value from wild bootstrap = .8684666666666667

. 
. *(4)
. wildbs cs r2_trt "r2 r3 r3_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
Number BS reps = 30000
P-value from clustered standard errors = .1671908578049351
P-value from wild bootstrap = .2514

. wildbs cs r3_trt "r2 r3 r2_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
Number BS reps = 30000
P-value from clustered standard errors = .7039960595401171
P-value from wild bootstrap = .7386666666666667

. 
. *(5)
. wildbs fs r2_trt "r2 r3 r3_trt mk_* [pw=tr_all]" "int_loc==2" $breps
(7 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .842612360574185
P-value from wild bootstrap = .8436

. wildbs fs r3_trt "r2 r3 r2_trt mk_* [pw=tr_all]" "int_loc==2" $breps
(7 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .0111796376839969
P-value from wild bootstrap = .0098

. 
. *(6)
. wildbs fs r2_trt "r2 r3 r3_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
(7 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9442630365316632
P-value from wild bootstrap = .9511333333333334

. wildbs fs r3_trt "r2 r3 r2_trt $demo_m $hlth_m mk_* [pw=tr_all]" "int_loc==2" $breps
(7 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .1249589225640218
P-value from wild bootstrap = .1953333333333333

. 
. 
. 
. 
. 
. 
. **********************
. ** APPENDIX TABLE 7 **
. **********************
. 
. *(1)
. global indata consumer

. wildbs ln_incr_usd r2_trt "r2 r3 r3_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(122 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .7915638987899962
P-value from wild bootstrap = .8287333333333333

. wildbs ln_incr_usd r3_trt "r2 r3 r2_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(122 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9517770794284021
P-value from wild bootstrap = .9492

. 
. *(2)
. wildbs edu_years r2_trt "r2 r3 r3_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6880849968822171
P-value from wild bootstrap = .7326

. wildbs edu_years r3_trt "r2 r3 r2_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(26 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .9701114470134071
P-value from wild bootstrap = .9701333333333333

. 
. *(3)
. wildbs hsize r2_trt "r2 r3 r3_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .4393244173724896
P-value from wild bootstrap = .4510666666666667

. wildbs hsize r3_trt "r2 r3 r2_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .1298601508648833
P-value from wild bootstrap = .1612666666666667

. 
. *(4)
. wildbs scst r2_trt "r2 r3 r3_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(413 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .8990971311716913
P-value from wild bootstrap = .9008666666666667

. wildbs scst r3_trt "r2 r3 r2_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
(413 missing values generated)
Number BS reps = 30000
P-value from clustered standard errors = .6296188332444259
P-value from wild bootstrap = .6445333333333333

. 
. *(5)
. wildbs tfw r2_trt "r2 r3 r3_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .8052230728148869
P-value from wild bootstrap = .8090000000000001

. wildbs tfw r3_trt "r2 r3 r2_trt mk_*" "int_loc==1 & mp==0 & dm_sample==1" $breps
Number BS reps = 30000
P-value from clustered standard errors = .3972476260497347
P-value from wild bootstrap = .4129333333333333

. 
. 
. 
. log close
      name:  <unnamed>
       log:  /Users/bennettd/Dropbox/Hyderabad (DB & WY)/Analysis/replication/replication_bootstrap.log
  log type:  text
 closed on:  15 Feb 2018, 10:43:33
-----------------------------------------------------------------------------------------------------------------
